-- GENERATED SPELL FOR [Vindicator Maraad] --


function spell0_30833(pUnit, Event) --@Crusader Strike,n/a--
pUnit:FullCastSpellOnTarget(17281,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30833', 30321, 1)
end

function spell1_30833(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(29427,pUnit)
pUnit:RegisterEvent('Sorts_30833', 2500, 1)
end

function spell2_30833(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(17284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30833', 583, 1)
end

function Sorts_30833(pUnit, Event)
local choix_sorts_30833 = math.random(0, 2)
if choix_sorts_30833 == 0 then
pUnit:RegisterEvent('spell0_30833', 1, 1)
end
if choix_sorts_30833 == 1 then
pUnit:RegisterEvent('spell1_30833', 1, 1)
end
if choix_sorts_30833 == 2 then
pUnit:RegisterEvent('spell2_30833', 1, 1)
end
end

function mob30833_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30833', math.random(1500, 3000), 1)
end

function mob30833_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30833_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30833_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30833, 1, 'mob30833_Action')
RegisterUnitEvent(30833, 2, 'mob30833_Leave')
RegisterUnitEvent(30833, 3, 'mob30833_Kill')
RegisterUnitEvent(30833, 4, 'mob30833_Die')
